﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMS.BIZ
{
    public class Teacher : GMS.BIZ.Staff
    {
        private GuideStudents guideStudents;
        public GuideStudents GuideStudents
        {
            get { return guideStudents; }
            //set { guideStudents = value; }
        }

        /// <summary>
        /// 初始化
        /// </summary>
        public Teacher(string teacherID)
        {
            this.TeacherId = teacherID;
            this.GetStaffInfomation();
            //初始化GuideStudents对象
            GMS.BIZ.GuideStudents myGuideStudents = new GuideStudents(this.TeacherId);
            this.guideStudents = null;
            this.guideStudents = myGuideStudents;
        }

        static public DataSet GetAllTeacher()
        {
            GMS.ORM.DAL.UTeacher optUTeacher = new GMS.ORM.DAL.UTeacher();
            DataSet myDS = optUTeacher.GetList("if_teacher = 1");
            return myDS;
        }
    }
}
